<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
	<title>系统日志</title>
</head>

<body>

	<form action="hl!deleteAll.z" method="post">
	<c:if test="${!empty visitor &&visitor.adminGrade ==0}">
		<button type="submit" class="askAgain" >
			清空
		</button>
	</c:if>
	</form>

	<table class="list">
	<caption >
				系统日志
			</caption>
		<thead>

			<tr title="">
				<th>
					操作者
				</th>
				<th>
					时间
				</th>
				<th>
					概述
				</th>
				<th>
					删除日志
				</th>
			</tr>
		</thead>

			<c:forEach var="hlog" items="${logs}">
				<tr>
					<td>
						${hlog.username }
					</td>
					<td>
						${hlog.createTime }
					</td>
					<td title="${hlog.message}">
						${hlog.overview }
					</td>
					<td>
						<a href="hl!delete.z?id=${hlog.id}" class="askAgain">删除日志</a>
					</td>
				</tr>
			</c:forEach>
			
			<tr class="pagebutton">
			<td colspan="4">
				<jsp:include page="split_page.jsp">
					<jsp:param name="pagesize" value="50" />
					<jsp:param name="currentpage" value="${page.currentPage}" />
					<jsp:param name="rowcount" value="${page.rowCount}" />
					<jsp:param name="pagecount" value="${page.pageCount}" />
				</jsp:include>
			</td>
		</tr>
		</table>

</body>